# 面对什么问题
# 现实问题怎么解决
# 编程怎么解决

# 记录生肖，根据年份来判断生肖
from typing import List

chinese_zodiac = '猴鸡狗猪鼠牛虎兔龙蛇马羊'

# 切片操作符
print(chinese_zodiac[0])
print(chinese_zodiac[0:4])
print(chinese_zodiac[2:])
print(chinese_zodiac[:-5])

# 成员关系操作符
print("狗" in chinese_zodiac)
print("狗" not in chinese_zodiac)

# 连接操作符
print(chinese_zodiac + chinese_zodiac)
print(chinese_zodiac + 'aaa')

# 重复操作符
print(chinese_zodiac * 3)

year = 2018
# year1 = int(input("请输入年份："))
# print(year%12)
print("您的生肖为：%s" % chinese_zodiac[year % 12])
